src = $(wildcard ./*.c)
obj = $(patsubst %.c, %.o, $(src))
CC = gcc
target = server
$(target): $(obj)
	$(CC) $(obj) -o $(target) -ldl
%.o: %.c
	$(CC) -c $< -o $@
.PHONY: clean
clean:
	rm -rf $(obj) $(target)


